const puppeteer = require('puppeteer')
const fetchList = require('./fetch.js')

async function run() {
    const browser = await puppeteer.launch()
    const page = await browser.newPage()
    let info = await fetchList(page)
    console.log(JSON.stringify(info, null, '  '))
    await browser.close()
}

run().catch(err => {
    console.log(err)
    process.exit(1)
})
